package com.example.certificate.utils;


import java.io.Serializable;

public class ResultEntity implements Serializable {

	private static final long serialVersionUID = 7808264866773758140L;

	private String resultCode;//状态码
	private String desc;//调用结果信息
	private Object data;
	private Object model;

	public ResultEntity() {
		this.resultCode = ResultConstant.SUCCESS.resultCode;
		this.desc = ResultConstant.SUCCESS.getMessage();
	}

	public ResultEntity(Object data) {
		this.resultCode = ResultConstant.SUCCESS.resultCode;
		this.desc = ResultConstant.SUCCESS.getMessage();
		this.data = data;
	}

	public ResultEntity(String resultCode, String desc) {
		this.resultCode = resultCode;
		this.desc = desc;
	}

	public ResultEntity(ResultConstant resultConstant) {
		this.resultCode = resultConstant.resultCode;
		this.desc = resultConstant.getMessage();
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getModel() {
		return model;
	}

	public void setModel(Object model) {
		this.model = model;
	}
}
